package com.own.component.util.excel.util.write.function;

import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.util.Map;

/**
 * FontFunction
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
@FunctionalInterface
public interface FontFunction {

    /**
     * 获取字体信息
     *
     * @param workbook 工作表
     * @param fontMap  字体对象Key
     * @return 字体信息
     */
    Font get(XSSFWorkbook workbook, Map<String, Font> fontMap);

}
